<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css"/>
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css"/>
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/custom.css" />
    <title>临采商品管理</title>
</head>
<body data-id="">
<nav class="breadcrumb">运营管理<span class="c-gray en">&gt;</span>移动端管理<span class="c-gray en">&gt;</span> 首页管理<span class="c-gray en">&gt;</span> 轮播图管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="form-member" method="post">
        <div class="bg-1 bk-gray pb-10">
            <div class="lh-30 mb-10 clearfix  mt-10">
               <!-- <div class="va-m pl-15  f-16">
                    <input   type="button" type="button" class="btn  radius size-S " onclick="returns()" value="<<返&nbsp;回">
                </div>-->
                <table class="table_li mb-10 table">
                    <thead class="text-l">

                    <tr>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l w-60 text-r" style="width: 72px;">轮播图名称：</label>
                                <div class="formControls col-sm-7 pos-r">
                                    <input type="text" class="input-text radius" placeholder="请输入轮播图名称" id="picTitle" oninput="checkMaxIut(this)">
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-55" style="width: 75px;">筛选平台：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <select class="select radius f-l ml-10" style="width:100%; height: 30px;margin-top: -4px;margin-left: 1px;" id="platform">
                                        <option selected value="0">全部</option>
                                        <option value="20">普通平台</option>
                                        <option value="10">签约平台</option>
                                    </select>
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-55" style="width: 75px;">启动状态：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <select class="select radius f-l ml-10" style="width:100%; height: 30px;margin-top: -4px;margin-left: 1px;" id="picStatus">
                                        <option selected value="">全部</option>
                                        <option value="10">生效</option>
                                        <option value="20">未生效</option>
                                        <option value="30">已失效</option>
                                    </select>
                                </div>
                            </div>
                        </td>


                    </tr>
                    <tr>
                        <td class="col-4-1">
                            <div class="row">
                                <label style="width: 99px;" class="form-label f-l pt-5 text-r w-85">筛选生效时间：</label>
                                <div class="f-l ml-10">
                                    <input onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'timemax\')}',startDate:'%y-%M-%d 00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" class="input-text Wdate radius" id="timemin" type="text" placeholder="起始时间" style="width:128px;"  autocomplete="off">
                                    ~
                                    <input onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'timemin\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="input-text Wdate radius" id="timemax" type="text" placeholder="结束时间" style="width:128px;" autocomplete="off">
                                </div>
                                <span class="Validform_checktip"></span>
                            </div>
                        </td>

                    </tr>
                    <tr>
                        <td class="col-3-1">
                            <div class="row ml-10" align="left">
                                <label class="form-label f-l text-r w-60 lh-26 pl-15">商品区域：</label>
                                <div class="formControls f-l ml-10 lh-26" style="width: 274px;">
                                    <label style="float: left;"><input type="checkbox" checked="checked" onclick="goodselection()" id="saleAreas"/>全选&nbsp;&nbsp;</label>
                                    <span id="RegionSelection2"></span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    </thead>
                </table>
            </div>

            <div class="text-c pt-10 pb-20">
                <input type="button"  class="btn btn-secondary radius size-S " onclick="queryManagement()" value="查&nbsp;&nbsp;询">
                <input name="" type="reset" class="btn radius size-S ml-10  " value="重&nbsp;&nbsp;置">
            </div>
            <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th >序号</th>
                    <th >名称</th>
                    <th style="width: 168px;">区域</th>
                    <th >所属平台</th>
                    <th style="width: 127px;">生效时间</th>
                    <th>当前状态</th>
                    <th >创建时间</th>
                    <th >操作人员</th>
                    <th >操作</th>
                </tr>
                </thead>
                <tbody class="shun">
                </tbody>
            </table>
            <div class="mt-40"></div>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/timeFormat.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script src="../../../ht-js/dynamicWarehouse.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../ht-js/operation-js/wheelPlanting/rotationChart.js?rev=@@hash"></script>
<script type="text/javascript">

    //全选全不选
    function goodselection() {
        if($("#saleAreas").is(':checked')==true){
            var saleArea=$("input:checkbox[name='saleArea']")
            for(var i = 0; i < saleArea.length; i++) {
                saleArea[i].checked = true;
            }
        }else {
            var saleArea=$("input:checkbox[name='saleArea']")
            for(var i = 0; i < saleArea.length; i++) {
                saleArea[i].checked = false;
            }
        }

    }
    //子级选中
    goodselectionall()
    function goodselectionall() {
        var saleArea=$("input:checkbox[name='saleArea']")
        var saleArea2=$("input:checkbox[name='saleArea']:checked")
        if(saleArea2.length==saleArea.length){
            $("#saleAreas").prop("checked", true)
        }else {
            $("#saleAreas").prop("checked", false)
        }
    }
</script>
</body>
</html>